home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / buttons / selvb20 / selectio.frm < prev    next >
Text File  |  1995-06-18  |  30KB  |  901 lines

  1. VERSION 2.00
  2. Begin Form SelectionDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Selection Properties"
  6.    ClientHeight    =   6525
  7.    ClientLeft      =   1335
  8.    ClientTop       =   2010
  9.    ClientWidth     =   9075
  10.    Height          =   6870
  11.    Left            =   1305
  12.    LinkTopic       =   "Form1"
  13.    MDIChild        =   -1  'True
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   435
  16.    ScaleMode       =   3  'Pixel
  17.    ScaleWidth      =   605
  18.    Top             =   1695
  19.    Width           =   9135
  20.    Begin Frame Frame4 
  21.       BackColor       =   &H00C0C0C0&
  22.       Caption         =   "Selection Properties"
  23.       Height          =   2265
  24.       Left            =   180
  25.       TabIndex        =   29
  26.       Top             =   4170
  27.       Width           =   8775
  28.       Begin CommonDialog CMDialog1 
  29.          Left            =   2850
  30.          Top             =   930
  31.       End
  32.       Begin CheckBox Check1 
  33.          BackColor       =   &H00C0C0C0&
  34.          Caption         =   "Highlight"
  35.          ForeColor       =   &H000000FF&
  36.          Height          =   285
  37.          Index           =   4
  38.          Left            =   90
  39.          TabIndex        =   58
  40.          Top             =   1410
  41.          Width           =   1350
  42.       End
  43.       Begin OptionButton Option2 
  44.          BackColor       =   &H00C0C0C0&
  45.          Caption         =   "Center"
  46.          ForeColor       =   &H00FF0000&
  47.          Height          =   230
  48.          Index           =   2
  49.          Left            =   7650
  50.          TabIndex        =   55
  51.          Top             =   150
  52.          Width           =   915
  53.       End
  54.       Begin OptionButton Option2 
  55.          BackColor       =   &H00C0C0C0&
  56.          Caption         =   "Right"
  57.          ForeColor       =   &H00FF0000&
  58.          Height          =   230
  59.          Index           =   1
  60.          Left            =   6810
  61.          TabIndex        =   54
  62.          Top             =   150
  63.          Width           =   915
  64.       End
  65.       Begin OptionButton Option2 
  66.          BackColor       =   &H00C0C0C0&
  67.          Caption         =   "Left"
  68.          ForeColor       =   &H00FF0000&
  69.          Height          =   230
  70.          Index           =   0
  71.          Left            =   6030
  72.          TabIndex        =   53
  73.          Top             =   150
  74.          Width           =   705
  75.       End
  76.       Begin HScrollBar HScroll1 
  77.          Height          =   240
  78.          Index           =   10
  79.          Left            =   6000
  80.          Max             =   100
  81.          Min             =   -100
  82.          TabIndex        =   48
  83.          Top             =   1590
  84.          Value           =   1
  85.          Width           =   2055
  86.       End
  87.       Begin HScrollBar HScroll1 
  88.          Height          =   240
  89.          Index           =   9
  90.          Left            =   6000
  91.          Max             =   100
  92.          Min             =   -100
  93.          TabIndex        =   45
  94.          Top             =   1320
  95.          Value           =   1
  96.          Width           =   2055
  97.       End
  98.       Begin HScrollBar HScroll1 
  99.          Height          =   240
  100.          Index           =   11
  101.          Left            =   6000
  102.          Max             =   150
  103.          TabIndex        =   42
  104.          Top             =   1860
  105.          Value           =   1
  106.          Width           =   2055
  107.       End
  108.       Begin HScrollBar HScroll1 
  109.          Height          =   240
  110.          Index           =   8
  111.          Left            =   6000
  112.          Max             =   360
  113.          TabIndex        =   39
  114.          Top             =   420
  115.          Value           =   1
  116.          Width           =   2055
  117.       End
  118.       Begin HScrollBar HScroll1 
  119.          Height          =   240
  120.          Index           =   7
  121.          Left            =   1350
  122.          Max             =   25
  123.          TabIndex        =   36
  124.          Top             =   330
  125.          Width           =   2550
  126.       End
  127.       Begin HScrollBar HScroll1 
  128.          Height          =   240
  129.          Index           =   6
  130.          Left            =   1350
  131.          Max             =   26
  132.          Min             =   2
  133.          TabIndex        =   33
  134.          Top             =   600
  135.          Value           =   2
  136.          Width           =   2550
  137.       End
  138.       Begin TextBox Text1 
  139.          Height          =   315
  140.          Left            =   6000
  141.          TabIndex        =   30
  142.          Top             =   690
  143.          Width           =   2055
  144.       End
  145.       Begin Label Label1 
  146.          Alignment       =   1  'Right Justify
  147.          BackStyle       =   0  'Transparent
  148.          Caption         =   "HighlightColor"
  149.          Height          =   225
  150.          Index           =   15
  151.          Left            =   0
  152.          TabIndex        =   57
  153.          Top             =   1740
  154.          Width           =   1305
  155.       End
  156.       Begin Label Label4 
  157.          BorderStyle     =   1  'Fixed Single
  158.          Height          =   285
  159.          Left            =   1350
  160.          TabIndex        =   56
  161.          Top             =   1740
  162.          Width           =   2055
  163.       End
  164.       Begin Label Label3 
  165.          BorderStyle     =   1  'Fixed Single
  166.          Height          =   285
  167.          Left            =   6000
  168.          TabIndex        =   31
  169.          Top             =   1020
  170.          Width           =   2055
  171.       End
  172.       Begin Label Label1 
  173.          Alignment       =   1  'Right Justify
  174.          BackStyle       =   0  'Transparent
  175.          Caption         =   "SelectionColor"
  176.          Height          =   225
  177.          Index           =   14
  178.          Left            =   4470
  179.          TabIndex        =   51
  180.          Top             =   1050
  181.          Width           =   1485
  182.       End
  183.       Begin Label Label1 
  184.          Alignment       =   1  'Right Justify
  185.          BackStyle       =   0  'Transparent
  186.          Caption         =   "SelectionAlign"
  187.          Height          =   225
  188.          Index           =   13
  189.          Left            =   4440
  190.          TabIndex        =   52
  191.          Top             =   180
  192.          Width           =   1515
  193.       End
  194.       Begin Label Label1 
  195.          Alignment       =   1  'Right Justify
  196.          BackStyle       =   0  'Transparent
  197.          Caption         =   "SelectionAngle"
  198.          Height          =   225
  199.          Index           =   12
  200.          Left            =   4470
  201.          TabIndex        =   50
  202.          Top             =   450
  203.          Width           =   1485
  204.       End
  205.       Begin Label Label2 
  206.          BackStyle       =   0  'Transparent
  207.          Height          =   255
  208.          Index           =   10
  209.          Left            =   8100
  210.          TabIndex        =   49
  211.          Top             =   1590
  212.          Width           =   525
  213.       End
  214.       Begin Label Label1 
  215.          Alignment       =   1  'Right Justify
  216.          BackStyle       =   0  'Transparent
  217.          Caption         =   "SelectionOffsetY"
  218.          Height          =   225
  219.          Index           =   11
  220.          Left            =   4470
  221.          TabIndex        =   47
  222.          Top             =   1620
  223.          Width           =   1485
  224.       End
  225.       Begin Label Label2 
  226.          BackStyle       =   0  'Transparent
  227.          Height          =   255
  228.          Index           =   9
  229.          Left            =   8100
  230.          TabIndex        =   46
  231.          Top             =   1320
  232.          Width           =   525
  233.       End
  234.       Begin Label Label1 
  235.          Alignment       =   1  'Right Justify
  236.          BackStyle       =   0  'Transparent
  237.          Caption         =   "SelectionOffsetX"
  238.          Height          =   225
  239.          Index           =   10
  240.          Left            =   4470
  241.          TabIndex        =   44
  242.          Top             =   1350
  243.          Width           =   1485
  244.       End
  245.       Begin Label Label2 
  246.          BackStyle       =   0  'Transparent
  247.          Height          =   255
  248.          Index           =   11
  249.          Left            =   8100
  250.          TabIndex        =   43
  251.          Top             =   1860
  252.          Width           =   525
  253.       End
  254.       Begin Label Label1 
  255.          Alignment       =   1  'Right Justify
  256.          BackStyle       =   0  'Transparent
  257.          Caption         =   "SelectionRadius"
  258.          Height          =   225
  259.          Index           =   9
  260.          Left            =   4470
  261.          TabIndex        =   41
  262.          Top             =   1890
  263.          Width           =   1485
  264.       End
  265.       Begin Label Label2 
  266.          BackStyle       =   0  'Transparent
  267.          Height          =   255
  268.          Index           =   8
  269.          Left            =   8100
  270.          TabIndex        =   40
  271.          Top             =   420
  272.          Width           =   525
  273.       End
  274.       Begin Label Label1 
  275.          Alignment       =   1  'Right Justify
  276.          BackStyle       =   0  'Transparent
  277.          Caption         =   "SelectionID"
  278.          Height          =   225
  279.          Index           =   8
  280.          Left            =   120
  281.          TabIndex        =   38
  282.          Top             =   330
  283.          Width           =   1185
  284.       End
  285.       Begin Label Label2 
  286.          BackStyle       =   0  'Transparent
  287.          Height          =   255
  288.          Index           =   7
  289.          Left            =   3930
  290.          TabIndex        =   37
  291.          Top             =   330
  292.          Width           =   525
  293.       End
  294.       Begin Label Label1 
  295.          Alignment       =   1  'Right Justify
  296.          BackStyle       =   0  'Transparent
  297.          Caption         =   "Selections"
  298.          Height          =   225
  299.          Index           =   7
  300.          Left            =   180
  301.          TabIndex        =   35
  302.          Top             =   600
  303.          Width           =   1125
  304.       End
  305.       Begin Label Label2 
  306.          BackStyle       =   0  'Transparent
  307.          Height          =   255
  308.          Index           =   6
  309.          Left            =   3930
  310.          TabIndex        =   34
  311.          Top             =   570
  312.          Width           =   525
  313.       End
  314.       Begin Label Label1 
  315.          Alignment       =   1  'Right Justify
  316.          BackStyle       =   0  'Transparent
  317.          Caption         =   "SelectionCaption"
  318.          Height          =   225
  319.          Index           =   6
  320.          Left            =   4470
  321.          TabIndex        =   32
  322.          Top             =   750
  323.          Width           =   1515
  324.       End
  325.    End
  326.    Begin Frame Frame3 
  327.       BackColor       =   &H00C0C0C0&
  328.       Caption         =   "Line Properties"
  329.       Height          =   1395
  330.       Left            =   3720
  331.       TabIndex        =   1
  332.       Top             =   2730
  333.       Width           =   5235
  334.       Begin HScrollBar HScroll1 
  335.          Height          =   240
  336.          Index           =   5
  337.          Left            =   2010
  338.          Max             =   10
  339.          Min             =   1
  340.          TabIndex        =   2
  341.          Top             =   990
  342.          Value           =   1
  343.          Width           =   2550
  344.       End
  345.       Begin HScrollBar HScroll1 
  346.          Height          =   240
  347.          Index           =   4
  348.          Left            =   2010
  349.          Max             =   100
  350.          TabIndex        =   3
  351.          Top             =   720
  352.          Width           =   2550
  353.       End
  354.       Begin CheckBox Check1 
  355.          BackColor       =   &H00C0C0C0&
  356.          Caption         =   "LineDisplay"
  357.          ForeColor       =   &H000000FF&
  358.          Height          =   285
  359.          Index           =   3
  360.          Left            =   180
  361.          TabIndex        =   4
  362.          Top             =   300
  363.          Value           =   1  'Checked
  364.          Width           =   1350
  365.       End
  366.       Begin Label Label2 
  367.          BackStyle       =   0  'Transparent
  368.          Height          =   255
  369.          Index           =   5
  370.          Left            =   4590
  371.          TabIndex        =   5
  372.          Top             =   990
  373.          Width           =   525
  374.       End
  375.       Begin Label Label1 
  376.          Alignment       =   1  'Right Justify
  377.          BackStyle       =   0  'Transparent
  378.          Caption         =   "LineThickness"
  379.          Height          =   225
  380.          Index           =   5
  381.          Left            =   210
  382.          TabIndex        =   6
  383.          Top             =   990
  384.          Width           =   1755
  385.       End
  386.       Begin Label Label2 
  387.          BackStyle       =   0  'Transparent
  388.          Height          =   255
  389.          Index           =   4
  390.          Left            =   4590
  391.          TabIndex        =   7
  392.          Top             =   720
  393.          Width           =   525
  394.       End
  395.       Begin Label Label1 
  396.          Alignment       =   1  'Right Justify
  397.          BackStyle       =   0  'Transparent
  398.          Caption         =   "LineInnerRadius"
  399.          Height          =   225
  400.          Index           =   4
  401.          Left            =   210
  402.          TabIndex        =   8
  403.          Top             =   720
  404.          Width           =   1755
  405.       End
  406.    End
  407.    Begin Frame Frame2 
  408.       BackColor       =   &H00C0C0C0&
  409.       Caption         =   "Automatic Configuration Properties"
  410.       Height          =   2685
  411.       Left            =   3720
  412.       TabIndex        =   9
  413.       Top             =   0
  414.       Width           =   5235
  415.       Begin Frame Frame1 
  416.          BackColor       =   &H00C0C0C0&
  417.          Caption         =   "AutoOffsetStyle"
  418.          Height          =   1065
  419.          Left            =   2010
  420.          TabIndex        =   25
  421.          Top             =   300
  422.          Width           =   2535
  423.          Begin OptionButton Option1 
  424.             BackColor       =   &H00C0C0C0&
  425.             Caption         =   "Circular"
  426.             ForeColor       =   &H00FF0000&
  427.             Height          =   225
  428.             Index           =   0
  429.             Left            =   300
  430.             TabIndex        =   28
  431.             Top             =   270
  432.             Width           =   1185
  433.          End
  434.          Begin OptionButton Option1 
  435.             BackColor       =   &H00C0C0C0&
  436.             Caption         =   "Horizontal"
  437.             ForeColor       =   &H00FF0000&
  438.             Height          =   225
  439.             Index           =   1
  440.             Left            =   300
  441.             TabIndex        =   27
  442.             Top             =   510
  443.             Value           =   -1  'True
  444.             Width           =   1185
  445.          End
  446.          Begin OptionButton Option1 
  447.             BackColor       =   &H00C0C0C0&
  448.             Caption         =   "Vertical"
  449.             ForeColor       =   &H00FF0000&
  450.             Height          =   225
  451.             Index           =   2
  452.             Left            =   300
  453.             TabIndex        =   26
  454.             Top             =   750
  455.             Width           =   1185
  456.          End
  457.       End
  458.       Begin HScrollBar HScroll1 
  459.          Height          =   240
  460.          Index           =   3
  461.          Left            =   2010
  462.          Max             =   100
  463.          TabIndex        =   22
  464.          Top             =   2280
  465.          Width           =   2550
  466.       End
  467.       Begin CheckBox Check1 
  468.          BackColor       =   &H00C0C0C0&
  469.          Caption         =   "AutoAlign"
  470.          ForeColor       =   &H000000C0&
  471.          Height          =   285
  472.          Index           =   0
  473.          Left            =   240
  474.          TabIndex        =   15
  475.          Top             =   390
  476.          Value           =   1  'Checked
  477.          Width           =   1350
  478.       End
  479.       Begin CheckBox Check1 
  480.          BackColor       =   &H00C0C0C0&
  481.          Caption         =   "AutoAngle"
  482.          ForeColor       =   &H000000C0&
  483.          Height          =   285
  484.          Index           =   1
  485.          Left            =   240
  486.          TabIndex        =   14
  487.          Top             =   660
  488.          Value           =   1  'Checked
  489.          Width           =   1350
  490.       End
  491.       Begin CheckBox Check1 
  492.          BackColor       =   &H00C0C0C0&
  493.          Caption         =   "AutoOffset"
  494.          ForeColor       =   &H000000C0&
  495.          Height          =   285
  496.          Index           =   2
  497.          Left            =   240
  498.          TabIndex        =   13
  499.          Top             =   930
  500.          Value           =   1  'Checked
  501.          Width           =   1350
  502.       End
  503.       Begin HScrollBar HScroll1 
  504.          Height          =   240
  505.          Index           =   0
  506.          Left            =   2010
  507.          Max             =   360
  508.          TabIndex        =   12
  509.          Top             =   1470
  510.          Width           =   2550
  511.       End
  512.       Begin HScrollBar HScroll1 
  513.          Height          =   240
  514.          Index           =   1
  515.          Left            =   2010
  516.          Max             =   360
  517.          TabIndex        =   11
  518.          Top             =   1740
  519.          Width           =   2550
  520.       End
  521.       Begin HScrollBar HScroll1 
  522.          Height          =   240
  523.          Index           =   2
  524.          Left            =   2010
  525.          Max             =   100
  526.          TabIndex        =   10
  527.          Top             =   2010
  528.          Width           =   2550
  529.       End
  530.       Begin Label Label2 
  531.          BackStyle       =   0  'Transparent
  532.          Height          =   255
  533.          Index           =   3
  534.          Left            =   4590
  535.          TabIndex        =   24
  536.          Top             =   2280
  537.          Width           =   525
  538.       End
  539.       Begin Label Label1 
  540.          Alignment       =   1  'Right Justify
  541.          BackStyle       =   0  'Transparent
  542.          Caption         =   "AutoRadius"
  543.          Height          =   225
  544.          Index           =   3
  545.          Left            =   210
  546.          TabIndex        =   23
  547.          Top             =   2280
  548.          Width           =   1755
  549.       End
  550.       Begin Label Label2 
  551.          BackStyle       =   0  'Transparent
  552.          Height          =   255
  553.          Index           =   2
  554.          Left            =   4590
  555.          TabIndex        =   21
  556.          Top             =   2010
  557.          Width           =   525
  558.       End
  559.       Begin Label Label1 
  560.          Alignment       =   1  'Right Justify
  561.          BackStyle       =   0  'Transparent
  562.          Caption         =   "AutoStartAngle"
  563.          Height          =   225
  564.          Index           =   0
  565.          Left            =   600
  566.          TabIndex        =   20
  567.          Top             =   1470
  568.          Width           =   1365
  569.       End
  570.       Begin Label Label1 
  571.          Alignment       =   1  'Right Justify
  572.          BackStyle       =   0  'Transparent
  573.          Caption         =   "AutoStopAngle"
  574.          Height          =   225
  575.          Index           =   1
  576.          Left            =   600
  577.          TabIndex        =   19
  578.          Top             =   1740
  579.          Width           =   1365
  580.       End
  581.       Begin Label Label1 
  582.          Alignment       =   1  'Right Justify
  583.          BackStyle       =   0  'Transparent
  584.          Caption         =   "AutoOffsetDistance"
  585.          Height          =   225
  586.          Index           =   2
  587.          Left            =   210
  588.          TabIndex        =   18
  589.          Top             =   2010
  590.          Width           =   1755
  591.       End
  592.       Begin Label Label2 
  593.          BackStyle       =   0  'Transparent
  594.          Height          =   255
  595.          Index           =   0
  596.          Left            =   4590
  597.          TabIndex        =   17
  598.          Top             =   1470
  599.          Width           =   525
  600.       End
  601.       Begin Label Label2 
  602.          BackStyle       =   0  'Transparent
  603.          Height          =   255
  604.          Index           =   1
  605.          Left            =   4590
  606.          TabIndex        =   16
  607.          Top             =   1740
  608.          Width           =   525
  609.       End
  610.    End
  611.    Begin SELECTOR Selector1 
  612.       Angle           =   210
  613.       AutoAlign       =   -1  'True
  614.       AutoAngle       =   -1  'True
  615.       AutoOffset      =   -1  'True
  616.       AutoOffsetDistance=   0.9
  617.       AutoOffsetStyle =   1  ' 1 - Horizontal 
  618.       AutoRadius      =   0.8
  619.       AutoStartAngle  =   210
  620.       AutoStopAngle   =   330
  621.       BackgroundColor =   &H00C0C0C0&
  622.       BevelInner      =   0  ' 0 - None
  623.       BevelOuter      =   2  ' 2 - Inset
  624.       BevelWidth      =   2
  625.       BorderType      =   0  ' 0 - None
  626.       BorderWidth     =   0
  627.       Captions        =   SELECTIO.FRX:0000
  628.       FrameColor      =   &H00000000&
  629.       FrameScaleX     =   0
  630.       FrameScaleY     =   0
  631.       FrameStyle      =   0  ' 0 - None
  632.       Height          =   3885
  633.       Highlight       =   0   'False
  634.       HighlightColor  =   &H0000FFFF&
  635.       KnobColor       =   &H00404040&
  636.       KnobOriginX     =   0
  637.       KnobOriginY     =   0
  638.       KnobRadius      =   0.4
  639.       KnobStyle       =   0  ' 0 - Cicular
  640.       KnobUserDefined =   ""
  641.       Left            =   90
  642.       LineDisplay     =   -1  'True
  643.       LineInnerRadius =   0.45
  644.       LineThickness   =   2
  645.       MarkUserDefined =   ""
  646.       MouseControl    =   -1  'True
  647.       OutlineAlign    =   0  ' 0 - Left 
  648.       OutlineColor    =   &H00000000&
  649.       OutlineTitle    =   ""
  650.       OutlineWidth    =   0
  651.       Radius          =   0
  652.       TabIndex        =   0
  653.       Top             =   150
  654.       Value           =   0
  655.       Width           =   3555
  656.       XScale          =   0
  657.       YScale          =   0
  658.    End
  659. End
  660.  
  661. Sub Check1_Click (Index As Integer)
  662.  
  663.     Select Case Index
  664.         Case 0
  665.             selector1.AutoAlign = -check1(Index)
  666.         Case 1
  667.             selector1.AutoAngle = -check1(Index)
  668.         Case 2
  669.             selector1.AutoOffset = -check1(Index)
  670.         Case 3
  671.             selector1.LineDisplay = -check1(Index)
  672.         Case 4
  673.             selector1.Highlight = -check1(Index)
  674.     End Select
  675.  
  676. End Sub
  677.  
  678. Sub Form_Load ()
  679.  
  680.         hscroll1(0) = selector1.AutoStartAngle
  681.         hscroll1(1) = selector1.AutoStopAngle
  682.         hscroll1(2) = selector1.AutoOffsetDistance * 100
  683.         hscroll1(3) = selector1.AutoRadius * 100
  684.         
  685.         hscroll1(4) = selector1.LineInnerRadius * 100
  686.         hscroll1(5) = selector1.LineThickness
  687.  
  688.         hscroll1(6) = selector1.Selections
  689.         hscroll1(7) = selector1.SelectionID
  690.         hscroll1(8) = selector1.SelectionAngle
  691.         hscroll1(9) = selector1.SelectionOffsetX * 100
  692.         hscroll1(10) = selector1.SelectionOffsetY * 100
  693.         hscroll1(11) = selector1.SelectionRadius * 100
  694.         Option2(selector1.SelectionAlign) = True
  695.         label3.BackColor = selector1.SelectionColor
  696.         label4.BackColor = selector1.HighlightColor
  697.         text1 = selector1.SelectionCaption
  698.         
  699. End Sub
  700.  
  701. Sub HScroll1_Change (Index As Integer)
  702.  
  703.  
  704.     Select Case Index
  705.         Case 0
  706.             selector1.AutoStartAngle = hscroll1(Index)
  707.             label2(Index) = hscroll1(Index)
  708.         Case 1
  709.             selector1.AutoStopAngle = hscroll1(Index)
  710.             label2(Index) = hscroll1(Index)
  711.         Case 2
  712.             selector1.AutoOffsetDistance = hscroll1(Index) / 100
  713.             label2(Index) = hscroll1(Index) / 100
  714.         Case 3
  715.             selector1.AutoRadius = hscroll1(Index) / 100
  716.             label2(Index) = hscroll1(Index) / 100
  717.         Case 4
  718.             selector1.LineInnerRadius = hscroll1(Index) / 100
  719.             label2(Index) = hscroll1(Index) / 100
  720.         Case 5
  721.             selector1.LineThickness = hscroll1(Index)
  722.             label2(Index) = hscroll1(Index)
  723.         Case 6
  724.             selector1.Selections = hscroll1(Index)
  725.             If selector1.SelectionID >= selector1.Selections Then
  726.                 selector1.SelectionID = selector1.Selections - 1
  727.                 selector1.Value = selector1.SelectionID
  728.                 Selector1_Change
  729.             End If
  730.             label2(Index) = hscroll1(Index)
  731.         Case 7
  732.             selector1.SelectionID = hscroll1(Index)
  733.             
  734.             If selector1.SelectionID >= selector1.Selections Then
  735.                 selector1.SelectionID = selector1.Selections - 1
  736.             End If
  737.             
  738.             selector1.Value = selector1.SelectionID
  739.             hscroll1(Index) = selector1.SelectionID
  740.             Selector1_Change
  741.             label2(Index) = hscroll1(Index)
  742.         Case 8
  743.             selector1.SelectionAngle = hscroll1(Index)
  744.             label2(Index) = hscroll1(Index)
  745.         Case 9
  746.             selector1.SelectionOffsetX = hscroll1(Index) / 100
  747.             label2(Index) = hscroll1(Index) / 100
  748.         Case 10
  749.             selector1.SelectionOffsetY = hscroll1(Index) / 100
  750.             label2(Index) = hscroll1(Index) / 100
  751.         Case 11
  752.             selector1.SelectionRadius = hscroll1(Index) / 100
  753.             label2(Index) = hscroll1(Index) / 100
  754.     End Select
  755.  
  756. End Sub
  757.  
  758. Sub HScroll1_Scroll (Index As Integer)
  759.  
  760.     Select Case Index
  761.         Case 0
  762.             selector1.AutoStartAngle = hscroll1(Index)
  763.             label2(Index) = hscroll1(Index)
  764.         Case 1
  765.             selector1.AutoStopAngle = hscroll1(Index)
  766.             label2(Index) = hscroll1(Index)
  767.         Case 2
  768.             selector1.AutoOffsetDistance = hscroll1(Index) / 100
  769.             label2(Index) = hscroll1(Index) / 100
  770.         Case 3
  771.             selector1.AutoRadius = hscroll1(Index) / 100
  772.             label2(Index) = hscroll1(Index) / 100
  773.         Case 4
  774.             selector1.LineInnerRadius = hscroll1(Index) / 100
  775.             label2(Index) = hscroll1(Index) / 100
  776.         Case 5
  777.             selector1.LineThickness = hscroll1(Index)
  778.             label2(Index) = hscroll1(Index)
  779.         Case 6
  780.             selector1.Selections = hscroll1(Index)
  781.             If selector1.SelectionID >= selector1.Selections Then
  782.                 selector1.SelectionID = selector1.Selections - 1
  783.                 selector1.Value = selector1.SelectionID
  784.                 Selector1_Change
  785.             End If
  786.             label2(Index) = hscroll1(Index)
  787.         Case 7
  788.             selector1.SelectionID = hscroll1(Index)
  789.             
  790.             If selector1.SelectionID >= selector1.Selections Then
  791.                 selector1.SelectionID = selector1.Selections - 1
  792.             End If
  793.             
  794.             selector1.Value = selector1.SelectionID
  795.             hscroll1(Index) = selector1.SelectionID
  796.             Selector1_Change
  797.             label2(Index) = hscroll1(Index)
  798.         Case 8
  799.             If check1(1) Then
  800.                 MsgBox "Turning AutoAngle Off"
  801.                 check1(1) = False
  802.                 selector1.AutoAngle = False
  803.             End If
  804.             
  805.             selector1.SelectionAngle = hscroll1(Index)
  806.             label2(Index) = hscroll1(Index)
  807.         Case 9
  808.             If check1(2) Then
  809.                 MsgBox "Turning AutoOffset Off"
  810.                 check1(2) = False
  811.                 selector1.AutoOffset = False
  812.             End If
  813.             
  814.             selector1.SelectionOffsetX = hscroll1(Index) / 100
  815.             label2(Index) = hscroll1(Index) / 100
  816.         Case 10
  817.             If check1(2) Then
  818.                 MsgBox "Turning AutoOffset Off"
  819.                 check1(2) = False
  820.                 selector1.AutoOffset = False
  821.             End If
  822.             
  823.             selector1.SelectionOffsetY = hscroll1(Index) / 100
  824.             label2(Index) = hscroll1(Index) / 100
  825.         Case 11
  826.             If check1(2) Then
  827.                 MsgBox "Turning AutoOffset Off"
  828.                 check1(2) = False
  829.                 selector1.AutoOffset = False
  830.             End If
  831.             
  832.             selector1.SelectionRadius = hscroll1(Index) / 100
  833.             label2(Index) = hscroll1(Index) / 100
  834.     End Select
  835.  
  836.  
  837. End Sub
  838.  
  839. Sub Label3_Click ()
  840.  
  841.     cmdialog1.Color = label3.BackColor
  842.     cmdialog1.Action = 3
  843.     label3.BackColor = cmdialog1.Color
  844.     selector1.SelectionColor = label3.BackColor
  845.  
  846. End Sub
  847.  
  848. Sub Label4_Click ()
  849.  
  850.     cmdialog1.Color = label4.BackColor
  851.     cmdialog1.Action = 3
  852.     label4.BackColor = cmdialog1.Color
  853.     selector1.HighlightColor = label4.BackColor
  854.  
  855. End Sub
  856.  
  857. Sub Option1_Click (Index As Integer)
  858.  
  859.     selector1.AutoOffsetStyle = Index
  860.  
  861. End Sub
  862.  
  863. Sub Option2_Click (Index As Integer)
  864.  
  865.     
  866.  
  867.     selector1.SelectionAlign = Index
  868.  
  869. End Sub
  870.  
  871. Sub Option2_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  872.  
  873.     If check1(0) Then
  874.         MsgBox "Turning AutoAlign Off"
  875.         check1(0) = False
  876.         selector1.AutoAlign = False
  877.     End If
  878.  
  879. End Sub
  880.  
  881. Sub Selector1_Change ()
  882.  
  883.     hscroll1(6) = selector1.Selections
  884.     hscroll1(7) = selector1.SelectionID
  885.     hscroll1(8) = selector1.SelectionAngle
  886.     hscroll1(9) = selector1.SelectionOffsetX * 100
  887.     hscroll1(10) = selector1.SelectionOffsetY * 100
  888.     hscroll1(11) = selector1.SelectionRadius * 100
  889.     Option2(selector1.SelectionAlign) = True
  890.     label3.BackColor = selector1.SelectionColor
  891.     text1 = selector1.SelectionCaption
  892.  
  893. End Sub
  894.  
  895. Sub Text1_Change ()
  896.  
  897.     selector1.SelectionCaption = text1
  898.  
  899. End Sub
  900.  
  901.